package org.example.services;

import org.example.domain.User;
import org.example.domain.response.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

public interface LoginService {
    //注册
    ResponseResult register(User user, String uuid);

    //用户名登录
    ResponseResult loginByUserName(User user, String uuid);

    //获取验证码
    ResponseResult getCheckCode(HttpServletRequest request) throws IOException;

    //通过邮箱获取验证码
    ResponseResult getCheckCodeByMail(String mailNumber);

    //验证验证码
    ResponseResult verifyCheckCode(User user,String uuid);

    //邮箱登录
    ResponseResult loginByMail(User user,String uuid);

    //登出
    ResponseResult logout(HttpServletRequest request);
}
